<%@ page contentType="text/html;charset=UTF-8" %>
<div id="auForm_edits" class="hide" style="min-width:320px!important;min-height:60px;line-height:60px">
	您是否确定执行该操作？
</div>
<div id="auForm_edit" class="hide" style="min-width:700px!important">
	<form id="generateForm" action=""	method="post"  onsubmit="return false;" enctype="multipart/form-data">
		<table cellspacing="0" cellpadding="0" border="0" class="customTable doctorMessage">
			<tbody>
			<tr class="FormData">
				<td class="CaptionTD">商品名称：</td>
				<td class="DataTD" colspan="3">&nbsp;
					<input name="productName" type="text" placeholder="请输入商品名称" jyValidate="required" style="width:85%;">
				</td>
			</tr>
			<tr class="FormData">
				<td class="CaptionTD">商品价格：</td>
				<td class="DataTD">&nbsp;
					<input name="productPrice" type="text" placeholder="请输入商品价格" jyValidate="intgt0" style="width:85%;">
				</td>
				<td class="CaptionTD">等值积分：</td>
				<td class="DataTD">&nbsp;
					<input name="productPoint" type="text" placeholder="请输入等值积分" jyValidate="nums" style="width:85%;">
				</td>
			</tr>
			<tr class="FormData">
				<td class="CaptionTD">商品类目：</td>
				<td class="DataTD">&nbsp;
					<input id="preResources" type="text" readonly value="" class="FormElement ui-widget-content ui-corner-all" onclick="showPreResources(); return false;"/>
					<input type="hidden" name="parentId" value="0" >
					<div id="preResourcesContent" class="menuContent ztreeMC" style="display: none; position: absolute;">
						<ul id="preResourcesTree" class="ztree resourcesTree"></ul>
					</div>
				</td>
				<td class="CaptionTD">商品排序：</td>
				<td class="DataTD">&nbsp;
					<input name="sortOrder" type="number" placeholder="请输入商品序号" jyValidate="nums" style="width:85%;">
				</td>
			</tr>
			<tr class="FormData">
				<td class="CaptionTD">库存：</td>
				<td class="DataTD">&nbsp;
					<input name="productNumber" type="text" placeholder="请输入库存" jyValidate="nums" style="width:85%;">
				</td>
				<td class="CaptionTD">类型：</td>
				<td class="DataTD">&nbsp;
					<select name="productType"  id="groom" style="width:163px">
						<option value="1">混合购买</option>
						<option value="2">积分兑换</option>
					</select>
				</td>
			</tr>
			<tr class="FormData">
				<td class="CaptionTD">状态：</td>
				<td class="DataTD">&nbsp;
					<select name="state"  style="width:163px" id="groomsSel">
						<option value="1">有效</option>
						<option value="0">失效</option>
					</select>
				</td>
			</tr>
			<tr class="FormData">
				<td class="CaptionTD">上架时间：</td>
				<td class="DataTD">&nbsp;
					<input type="text" jyValidate="required" id="schduleDateStart"  name="ondate" class="FormElement ui-widget-content ui-corner-all">
				</td>
				<td class="CaptionTD">下架时间：</td>
				<td class="DataTD">&nbsp;
					<input type="text" jyValidate="required" id="schduleDateEnd"  name="offdate" class="FormElement ui-widget-content ui-corner-all">
				</td>
			</tr>
			<tr class="FormData">
				<td class="CaptionTD">商品图：</td>
				<td class="DataTD">&nbsp;
					<span id="span_img" class="uplode_img" style="height:85px;width:160px;display: inline-block;position:relative">
							 <img src="${jypath}/static/images/back/add_img.jpg" class="preview_ing shopImg" style="position:relative;width:100%;height:100%;padding:0 5px;"  />
							 <input type="file"  name="file" accept="image/*"  onchange="preview(this)"
									style="position:absolute;top:0;left:0;width:160px;height:85px;opacity:0"  id="input1"/>
					</span>
				</td>
				<td class="CaptionTD">商品详情图：</td>
				<td class="DataTD">&nbsp;
					<span id="span_img2" class="uplode_img" style="height:85px;width:160px;display: inline-block;position:relative">
							 <img src="${jypath}/static/images/back/add_img.jpg" class="preview_ing shopDeilImg" style="position:relative;width:100%;height:100%;padding:0 5px;"  />
							 <input type="file"  name="file" accept="image/*"  onchange="preview2(this)"
									style="position:absolute;top:0;left:0;width:160px;height:85px;opacity:0"  id="input2"/>
					</span>
				</td>
			</tr>
			<tr class="FormData">
				<td class="CaptionTD">商品描述：</td>
				<td class="DataTD" colspan="3">&nbsp;
					<textarea name="productDescribe" class="des" placeholder="请输入商品描述" style="height:80px;line-height:20px;resize:none;width:85%"></textarea>
				</td>
			</tr>
         </tbody>
        </table>
    </form>
</div>